Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Total Confidence - functionality to send tracking events #88

Merged
merged 76 commits into from
Mar 25, 2024

Conversation

nicklasl
Copy link
Member

@nicklasl nicklasl commented Mar 14, 2024

The main part of this functionality lies in the new way of constructing the Provider, by using Confidence.builder(..) and passing your Confidence instance as a constructor param for the OF Provider you can also use the Confidence object to emit tracking events!

Release-As: 0.1.0

@nicklasl nicklasl marked this pull request as ready for review March 20, 2024 15:21
pom.xml Outdated Show resolved Hide resolved
src/main/java/com/spotify/confidence/FlagResolver.java Outdated Show resolved Hide resolved
src/main/java/com/spotify/confidence/FlagResolver.java Outdated Show resolved Hide resolved
src/main/java/com/spotify/confidence/SystemClock.java Outdated Show resolved Hide resolved

public abstract com.google.protobuf.Value toProto();

public static class StringValue extends ConfidenceValue {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one differs by having the Value suffix in it's name. But I think that makes sense. Having these primitive types being public and sharing so many names with standard Java types will be a mess for developers? We should have a common naming scheme though.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would also be solved by only modeling a Primitive..

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll take a stab at this.

private final String clientSecret;

private final String SDK_VERSION;
private static final SdkId SDK_ID = SdkId.SDK_ID_JAVA_PROVIDER;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a new SDK_ID to proto. SDK_ID_JAVA_CONFIDENCE

nicklasl and others added 6 commits March 21, 2024 15:01
* context inheritence and closing WIP

* don't throw for closed send() + tests

* mark GrpcEventUploader constructor as package private

---------

Co-authored-by: Andreas Karlsson <[email protected]>
…add test for flag resolver grpc context flattening
…lient, add test for flag resolver grpc context flattening
@vahidlazio vahidlazio merged commit 4106c9f into main Mar 25, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants